﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../../common/jsp/taglibs.jsp"%>
<!-- 
    Copyright (C)  2011  chen wei hua.
    Permission is granted to copy, distribute and/or modify this document
    under the terms of the GNU Free Documentation License, Version 2.0
    or any later version published by the Free Software Foundation;
    with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
    A copy of the license is included in the section entitled "GNU Free Documentation License".
 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>入库单详细</TITLE>
<%@ include file="../../common/jsp/config.jsp"%>
<script type="text/javascript" language="javascript">
function deleteItem(id){
	if (window.confirm('确定要删除这个入库单吗?')==true) {
		window.location.href = 'deleteInStoreVoucher.action?voucherId=' + id;
	}
}
</script>
</HEAD>
<BODY>
    <div class="subnav" align="left">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="100%" align="left" height="31">&nbsp;<img src="common/images/title-pk.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt1">生产计划</span>
			&nbsp;<img src="common/images/leftico2.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt2">入库单信息</span></td>
		  </tr>
		</table>
    </div>
	<div class="btn-bottom" align="right" style="margin-right:20px">
	  <s:if test="voucher.status<2">
	    <input onclick=javascript:window.location.href='editInStoreVoucher.action?voucherId=<s:property value="voucher.id"/>' type="button" value="修改入库单" class="input1" />
	  </s:if>
	  <s:if test="voucher.status==2">
	    <input onclick=javascript:window.location.href='editCheckInStoreVoucher.action?voucherId=<s:property value="voucher.id"/>' type="button" value="修改检验结果" class="input1" />
	  </s:if>
	  <s:if test="voucher.status<10">
	    <input onclick=deleteItem('<s:property value="voucher.id"/>') type="button" value="删除入库单" class="input1" />
	  </s:if>
	</div>
   <div class="tab">
	<div id="tb_" class="tb_">
	  <ul>
		<li id="tb_1" class="hovertab">入库单信息</li>
	  </ul>
    </div>
	<div class="dis" id="tbc_01">
     <div class="main_1">
       <table width="99%" border="0" cellpadding="10" cellspacing="1" bgcolor="#D3DEEF">
         <tr>
           <td align="left" class="Blue14" bgcolor="#FAFAFA" colspan="4">入库单信息</td>
         </tr>
         <tr>
		    <td width="20%" bgcolor="#FAFAFA" align="right"><strong>入库单号</strong></td>
		    <td width="30%" bgcolor="#FAFAFA"><s:property value="voucher.id"/></td>
		    <td width="20%" bgcolor="#FAFAFA" align="right"><strong>部门</strong></td>
	        <td width="30%" bgcolor="#FAFAFA"><s:property value="voucher.deptName"/></td>
		 </tr>
		<tr>
	      <td bgcolor="#FAFAFA" align="right"><strong>送检日期</strong></td>
	      <td bgcolor="#FAFAFA"><s:date name="voucher.createDate" format="yyyy-MM-dd"/></td>
	      <td bgcolor="#FAFAFA" align="right"><strong>送检人</strong></td>
	      <td bgcolor="#FAFAFA"><s:property value="voucher.person"/></td>
		</tr>
		<tr>
	      <td bgcolor="#FAFAFA" align="right"><strong>检验日期</strong></td>
	      <td bgcolor="#FAFAFA"><s:date name="voucher.checkDate" format="yyyy-MM-dd"/></td>
	      <td bgcolor="#FAFAFA" align="right"><strong>检验单号</strong></td>
	      <td bgcolor="#FAFAFA"><s:property value="voucher.checkNo"/></td>
		</tr>
		<tr>
	      <td bgcolor="#FAFAFA" align="right"><strong>检验结果</strong></td>
	      <td bgcolor="#FAFAFA"><s:property value="voucher.checkResult"/></td>
	      <td bgcolor="#FAFAFA" align="right"><strong>检验人</strong></td>
	      <td bgcolor="#FAFAFA"><s:property value="voucher.checker"/></td>
		</tr>
		<tr>
	      <td bgcolor="#FAFAFA" align="right"><strong>原因描述</strong></td>
	      <td bgcolor="#FAFAFA" colspan="3"><s:property value="voucher.checkDescribe"/></td>
		</tr>
      </table>
     </div>
     <div class="clear"></div>
	 <div class="main_scroll">
       <table width="915px" cellpadding="0" cellspacing="1" border="0" class="ksglxx2a">
        <tr class="ksglxx2bg">
          <th width="50px" >大分类</th>
          <th width="60px" >中分类</th>
          <th width="95px" >名称</th>
          <th width="180px" >型号</th>
          <th width="180px" >其他</th>
		  <th width="50px">单位</th>
		  <th width="95px">生产批号</th>
		  <th width="65px">送检数量</th>
		  <th width="65px">合格数量</th>
		  <th width="75px">不合格数量</th>
		</tr>
		<s:iterator value="voucher.voucherDetails" id="detail" status="st">
          <s:if test="#st.Odd">
            <tr class="odd">
          </s:if>
          <s:else>
            <tr class="even">
          </s:else>
              <td><s:property value="#detail.productRootCategory" /></td>
              <td><s:property value="#detail.productCategory" /></td>
              <td><s:property value="#detail.productName" /></td>
              <td><s:property value="#detail.productType" /></td>
              <td><s:property value="#detail.productSku" /></td>
              <td><s:property value="#detail.unit" /></td>
              <td><s:property value="#detail.batchNo" /></td>
              <td><s:property value="#detail.number" /></td>
              <td><s:property value="#detail.acceptNumber" /></td>
              <td><s:property value="#detail.otherNumber" /></td>
            </tr>
		</s:iterator>
       </table>
     </div>
    </div>
   </div>
</BODY></HTML>
